/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package helloscala.practise.chapter1

import scala.actors.Actor._;
import scala.actors._;

object ShapeDrawingActor extends Actor {
  def act() {
    loop {
      receive {
        case s: Shape => s.draw()
        case "exit" => println("exit"); exit
        case x: Any => println("Error: Unknown Message! " + x)
      }
    }
  }
}
